import {createStore} from 'vuex'

export default createStore({
    state: {
        audio_path: "",
        audio_status: "pause",
        audio_inc: 0,
        audio_dec: 0,
        audio_str: "00:00/00:00",
        audio_scale: 0,
    },
    getters: {},
    mutations: {
        set_audio_path(state, path) {
            state.audio_path = path
        },
        set_audio_status(state, status) {
            state.audio_status = status
        },
        set_audio_inc(state) {
            state.audio_inc += 1
        },
        set_audio_dec(state, path) {
            state.audio_dec += 1
        },
        set_audio_scale(state, scale) {
            state.audio_scale = scale
        },
        set_audio_str(state, str) {
            state.audio_str = str
        }
    },
    actions: {},
    modules: {}
})
